import styled from "styled-components";

export const SongsListDetailWrapper = styled.div`
  width: 100%;
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  z-index: 100;
  transform-origin: bottom right;
  &.fly-enter,
  &.fly-appear {
    transform: translate3d(0, 30px, 0);
    opacity: 0;
  }
  &.fly-enter-active,
  &.fly-appear-active {
    transition: all 0.3s ease;
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  &.fly-exit {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  &.fly-exit-active {
    transition: all 0.3s ease;
    transform: translate3d(0, 30px, 0);
    opacity: 0;
  }
`;

export const InfoWrapper = styled.div`
  font-size: 14px;
  width: 100%;
  .bot {
    position: relative;
    margin: 0 10px 0 15px;
    padding-top: 10px;
    line-height: 19px;
    color: #666;
    .dec {
      position: relative;
      padding-bottom: 18px;
      line-height: 19px;
      color: #666;
      .brk {
        word-wrap: break-word;
        white-space: normal;
        overflow: hidden;
      }
      .arrow {
        position: absolute;
        bottom: 3px;
        right: 0;
        z-index: 3;
        width: 15px;
        height: 15px;
        background: url(${props => props.arrow});
        background-position: 50%;
        background-repeat: no-repeat;
        background-size: 12px auto;
        line-height: 19px;
        color: #666;
      }
    }
    .tags {
      margin-bottom: 10px;
      line-height: 20px;
      margin-right: -10px;
      .tag-item {
        display: inline-block;
        margin-right: 10px;
        padding: 1px 8px;
        font-size: 12px;
        position: relative;
        &::after {
          border-radius: 9999px;
        }
      }
    }
  }
  .top {
    position: relative;
    padding: 30px 10px 30px 15px;
    overflow: hidden;
    .bg {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
      background: url("http://music.163.com/api/img/blur/109951164676901776?param=170y170")
        no-repeat;
      background-size: cover;
      filter: blur(20px);
      transform: scale(1.5);
      &::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        background-color: rgba(0, 0, 0, 0.25);
      }
    }
    .wrap {
      display: flex;
      position: relative;
      z-index: 2;
      .right {
        flex: 1 1 auto;
        width: 1%;
        margin-left: 16px;
        h2 {
          padding-top: 1px;
          font-size: 17px;
          line-height: 1.3;
          color: #fefefe;
          height: 44px;
          display: -webkit-box;
          -webkit-box-pack: center;
        }
        .user {
          color: hsla(0, 0%, 100%, 0.7);
          font-size: 14px;
          display: block;
          position: relative;
          margin-top: 20px;
          .avatar {
            display: inline-block;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            vertical-align: middle;
            margin-right: 5px;
            overflow: hidden;
            img {
              width: 100%;
            }
          }
        }
      }
      .img {
        width: 126px;
        height: 126px;
        position: relative;
        i {
          position: absolute;
          right: 2px;
          top: 1px;
          z-index: 3;
          padding-left: 15px;
          color: #fff;
          font-size: 12px;
          background-position: 0;
          background-repeat: no-repeat;
          background-size: 11px 10px;
          text-shadow: 1px 0 0 rgba(0, 0, 0, 0.15);
        }
        &::after {
          content: " ";
          position: absolute;
          left: 0;
          top: 0;
          width: 126px;
          height: 18px;
          z-index: 2;
          background-image: -webkit-linear-gradient(
            left,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.2)
          );
          background-image: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.2)
          );
        }
        img {
          width: 100%;
          height: 100%;
        }
        span {
          position: absolute;
          z-index: 3;
          top: 10px;
          left: 0;
          padding: 0 8px;
          height: 17px;
          color: #fff;
          font-size: 9px;
          text-align: center;
          line-height: 17px;
          background-color: rgba(217, 48, 48, 0.8);
          border-top-right-radius: 17px;
          border-bottom-right-radius: 17px;
        }
      }
    }
  }
`;

export const SongsWrapper = styled.div`
  width: 100%;
  .title {
    height: 23px;
    line-height: 23px;
    padding: 0 10px;
    font-size: 12px;
    color: #666;
    background-color: #eeeff0;
  }
`;

export const FooterAd = styled.div`
  position: fixed;
  background-color: #fff;
  bottom: 0;
  left: 0;
  right: 0;
  .btn-wrap {
    padding: 7px 30px;
    box-sizing: border-box;
    width: 100%;
    .fot-btn {
      position: relative;
      height: 40px;
      line-height: 40px;
      font-size: 16px;
      color: #fff;
      background-color: #ff3a3a;
      text-align: center;
      border-radius: 36px;
      &::before {
        content: "";
        display: inline-block;
        position: relative;
        top: 5px;
        width: 21px;
        height: 23px;
        background: url()
          no-repeat;
        background-size: contain;
        margin-right: 4px;
      }
    }
  }
`;
